//
//  UIImageView+ViewController.m
//  Wolf
//
//  Created by wujian on 2017/1/11.
//  Copyright © 2017年 wujian. All rights reserved.
//

#import "UIImageView+ViewController.h"

@implementation UIImageView (ViewController)

- (UIViewController *)superViewController{
    
    id target = self;
    
    while (target) {
        
        target = ((UIResponder *)target).nextResponder;
        
        if ([target isKindOfClass:[UIViewController class]]) {
            
            break;
        }
    }
    return target;
    
}

@end
